package com.aneliya.client.tcp;

import java.io.IOException;

import com.aneliya.client.ClientSender;
import com.aneliya.io.IStreamStrategy;
import com.aneliya.model.Message;

public class TCPClientSender extends ClientSender {
	
	private IStreamStrategy streamStrategy;
	public void setStreamStrategy(IStreamStrategy streamStrategy) {
		this.streamStrategy = streamStrategy;
	}

	protected void sendMessageToClient(Message message) throws IOException {
		streamStrategy.writeMessage(message);
	}

}
